﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using FXnaEngine.Graphics;

namespace FXnaEngine.Components
{
    public class FModelRendererComponent:FRendererComponent
    {


        public FModelRendererComponent(FEntity parent):base(parent)
        {

 
        }



        FModel model;

        public FModel Model
        {
            get { return model; }
            set { model = value; }
        }



        protected override void RenderCore(FGraphicsSystem graphics)
        {
            base.RenderCore(graphics);

            if (model!=null)
            {
                model.RenderCore(graphics,this);
                
            }



        }


        public override bool ExecuteMessage(IMessage message)
        {

            return true;
        }



        public override void LoadContent()
        {
            base.LoadContent();
        }
       




    }
}
